<div class="banners form">
<?php echo $form->create('Banner',array('enctype'=>'multipart/form-data'));?>
	<fieldset>
 		<legend><?php __('Edit Banner');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('nombre_banner');
		 echo '<br /><div class="input text required">' ;
		        if($filetype->getFile($this->data['Banner']['filename'])=='swf')
		        {
		                echo $flash->renderSwf('/files/banners/'.$this->data['Banner']['filename'],200,120);
		        }
		        else
		        {
		                echo $html->image('/files/banners/'.$this->data['Banner']['filename']);
		        }
		        echo "</div>";
	        echo $form->input('filename', array('type'=>'file','label'=>'Archivo .SWF .JPG .GIF','size'=>50));
		echo $form->input('link');
		echo $form->input('en_portada');
		echo $form->input('slider');
                echo $form->input('superior');
		echo $form->input('orden', array('size'=>2,'label'=>"Orden de 1-5"));
		echo $form->input('state_id', array('label'=>'Departamento'));

	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('Banner.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Banner.id'))); ?></li>
		<li><?php echo $html->link(__('List Banners', true), array('action'=>'index'));?></li>
	</ul>
</div>
